laravel eloquent search query 2020

50

laravel eloquent search query 2020 -

$result = Marriage::where('name','LIKE','%'.$email_or_name.'%')
                ->orWhere('email','LIKE','%'.$email_or_name.'%')
                ->get();

Comments

Submit
0 Comments